/**************************************************************************
 *
 *                Admin Over IM
 *
 **************************************************************************
 *  <Copyright>
 *    Copyright (C) 2008  Basov Alexander
 *
 *  <Unit> aoi.h
 *    <Purpose>
 *    <Effects>
 *    <Perfomance>
 **************************************************************************
 *  $Revision: 139 $ $Author: coopht $
 *  $Date: 2008-03-27 19:02:28 +0000 (Thu, 27 Mar 2008) $
 **************************************************************************/

#ifndef __AOI_H_
#define __AOI_H_

typedef int cmd_t;
typedef long int crc_t;


class Cmd
{
  
public:
  Cmd (cmd_t _type, int _tId = 0) {type = _type; tId = _tId;}
  cmd_t getType () {return this->type;}
  int getTid () {return tId;}
  void setTid (int val) {this->tId = val;}

  void computeCrc ();
  
private:
  cmd_t type;
  crc_t crc;
  int tId;
};

#endif // __AOI_H_
